<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{{ book.title }}</title>
</head>
<body>
    <h1>Welcome to Ebook Shop!</h1>
    {% include 'ebooks/menu.html' %}
    <h2>{{ book.title }}</h2>
    <img src="{{ book.cover_image.url }}" alt="Book Cover">
    <p>Author: {{ book.author }}</p>
    <p>Description: {{ book.description }}</p>
    <p>Price: ${{ book.price }}</p>
    <form method="post" action="{% url 'add_to_cart' book_id=book.id %}">
        {% csrf_token %}
        <button type="submit">Add to cart</button>
    </form>
    </br>
    <form method="get" action="{% url 'book_update' book_id=book.id %}">
        <button type="submit">Update</button>
    </form>
    </br>
    <form method="post" action="{% url 'book_delete' book_id=book.id %}" style="display: inline;">
        {% csrf_token %}
        <button type="submit">Delete</button>
    </form>
</body>
</html>